package com.lh.service;

import com.lh.commonutils.R;
import com.lh.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.entity.vo.OrderQuery;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author lh
 * @since 2021-06-16
 */
public interface ITOrderService extends IService<TOrder> {

    String creatOrders(String courseId, String memberIdByJwtToken);

    /**
     * 查询订单
     * @param page
     * @param limit
     * @param orderQuery
     * @return
     */
    R findAllOrder(Integer page, Integer limit, OrderQuery orderQuery);

    /**
     * 分润列表
     * @return
     * @param page
     * @param limit
     * @param
     */
    R moneymoneyList(Integer page, Integer limit, String teacherName);


    /**
     * 记录每天的订单数
     * @param day
     * @return
     */
    Integer countOrder(String day);
}
